﻿using System;
using UnityEngine;

namespace Script
{
    public class EnumConvert
    {
        public static Color CovertColorType2Color(CardColorType colorType)
        {
            switch (colorType)
            {
                case CardColorType.Red:
                    return Color.red;
                case CardColorType.Blue:
                    return Color.blue;
                case CardColorType.Purple:
                    return Color.magenta;
                case CardColorType.Posion:
                    return Color.green;
                default:
                    throw new ArgumentOutOfRangeException("colorType", colorType, null);
            }
        }
    }
}